<T:ViewBase x:Class="WPFExcelReport.TPTFOLGE02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PTFMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPTFOLGE.PTFMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PTFPAUFKRS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPTFOLGE.PTFPAUFKRS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PTFPAUFLFD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPTFOLGE.PTFPAUFLFD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PTFPAFOLGE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPTFOLGE.PTFPAFOLGE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PTFNEUB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPTFOLGE.PTFNEUB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PTFNEUD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPTFOLGE.PTFNEUD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PTFAENB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPTFOLGE.PTFAENB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PTFAEND:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPTFOLGE.PTFAEND}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PTFAENZL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPTFOLGE.PTFAENZL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PTFSTATUS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPTFOLGE.PTFSTATUS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PTFPKSTKRS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwPTFOLGE.PTFPKSTKRS}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsPTFOLGE,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwPTFOLGE}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwPTFOLGE, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="PTFMANDANT"
                                    Binding="{Binding Path=PTFMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFPAUFKRS"
                                    Binding="{Binding Path=PTFPAUFKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFPAUFKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFPAUFLFD"
                                    Binding="{Binding Path=PTFPAUFLFD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFPAUFLFD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFPAFOLGE"
                                    Binding="{Binding Path=PTFPAFOLGE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFPAFOLGE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFNEUB"
                                    Binding="{Binding Path=PTFNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFNEUD"
                                    Binding="{Binding Path=PTFNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFNEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFAENB"
                                    Binding="{Binding Path=PTFAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFAEND"
                                    Binding="{Binding Path=PTFAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFAENZL"
                                    Binding="{Binding Path=PTFAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFSTATUS"
                                    Binding="{Binding Path=PTFSTATUS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFSTATUS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFPKSTKRS"
                                    Binding="{Binding Path=PTFPKSTKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFPKSTKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFPKST"
                                    Binding="{Binding Path=PTFPKST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFPKST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFMTYP"
                                    Binding="{Binding Path=PTFMTYP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFMTYP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFAGANG"
                                    Binding="{Binding Path=PTFAGANG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFAGANG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFEVARHNR"
                                    Binding="{Binding Path=PTFEVARHNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFEVARHNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFEVARUNR"
                                    Binding="{Binding Path=PTFEVARUNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFEVARUNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFENDDAT"
                                    Binding="{Binding Path=PTFENDDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFENDDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFSME"
                                    Binding="{Binding Path=PTFSME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFSME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFSMG1"
                                    Binding="{Binding Path=PTFSMG1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFSMG1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFSMG2"
                                    Binding="{Binding Path=PTFSMG2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFSMG2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFSMG3"
                                    Binding="{Binding Path=PTFSMG3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFSMG3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFSMG4"
                                    Binding="{Binding Path=PTFSMG4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFSMG4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFSMG5"
                                    Binding="{Binding Path=PTFSMG5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFSMG5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFSMG6"
                                    Binding="{Binding Path=PTFSMG6, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFSMG6}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFSMG7"
                                    Binding="{Binding Path=PTFSMG7, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFSMG7}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFSMG8"
                                    Binding="{Binding Path=PTFSMG8, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFSMG8}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFRUESTZT"
                                    Binding="{Binding Path=PTFRUESTZT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFRUESTZT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFBEARBZT"
                                    Binding="{Binding Path=PTFBEARBZT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFBEARBZT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFVERWZT"
                                    Binding="{Binding Path=PTFVERWZT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFVERWZT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFRAUFKRS"
                                    Binding="{Binding Path=PTFRAUFKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFRAUFKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFRAUFLFD"
                                    Binding="{Binding Path=PTFRAUFLFD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFRAUFLFD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFRAUFPOS"
                                    Binding="{Binding Path=PTFRAUFPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFRAUFPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFRAFOLGE"
                                    Binding="{Binding Path=PTFRAFOLGE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFRAFOLGE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFKETTANZ"
                                    Binding="{Binding Path=PTFKETTANZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFKETTANZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFKETTMTR"
                                    Binding="{Binding Path=PTFKETTMTR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFKETTMTR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PTFFILLER"
                                    Binding="{Binding Path=PTFFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PTFFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
